<h1>Login</h1>
<?php foreach ($this->loginForm->getElements() as $element): ?>
    <?php if (!$element->hasErrors() && $element->getValue()): ?>
        <div id="success-login-<?php echo $element->getName() ?>" />
    <?php endif ?>
    <?php foreach ($element->getErrorMessages() as $error): ?>
        <?php if ($error): ?>
            <div class="error">
                <p><?php echo $error ?></p>
            </div>
        <?php endif ?>
        <div id="error-login-<?php echo $element->getName() ?>"/>
    <?php endforeach; ?>
<?php endforeach; ?>
        
<?php echo $this->loginForm ?>

<h1>or Register...</h1><a name="register"></a>

<?php foreach ($this->registerForm->getElements() as $element): ?>
    <?php if (!$element->hasErrors() && $element->getValue() && $element->getName() != 'captcha'): ?>
        <div id="success-register-<?php echo $element->getName() ?>" />
    <?php endif ?>
    <?php foreach ($element->getErrorMessages() as $error): ?>
        <?php if ($error): ?>
            <div class="error"">
                 <p><?php echo $error ?></p>
            </div>
        <?php endif ?>
        <div id="error-register-<?php echo $element->getName() ?>"/>
    <?php endforeach; ?>
<?php endforeach; ?>

<?php echo $this->registerForm ?>